#ifndef ENLOGIC_H
#define ENLOGIC_H

#include <QTimer>
#include <QThread>
#include <QSemaphore>
#include <entimedthread.h>
#include <QApplication>

class EnLogic : public EnTimedThread
{
    Q_OBJECT

public:
    EnLogic( QObject* parent, int fps, LockedSemaphore* s, QApplication& a );
    EnLogic( int fps, LockedSemaphore* s, QApplication& a );

private slots:
    void update();

private:
    int frames;
    void init();
};

#endif // ENLOGIC_H
